import request from '@/utils/request'

// 查询互动问题的回答或评论列表
export function listInteractionReply(query) {
  return request({
    url: '/study/interactionReply/list',
    method: 'get',
    params: query
  })
}

// 查询互动问题的回答或评论详细
export function getInteractionReply(id) {
  return request({
    url: '/study/interactionReply/' + id,
    method: 'get'
  })
}

// 新增互动问题的回答或评论
export function addInteractionReply(data) {
  return request({
    url: '/study/interactionReply',
    method: 'post',
    data: data
  })
}

// 修改互动问题的回答或评论
export function updateInteractionReply(data) {
  return request({
    url: '/study/interactionReply',
    method: 'put',
    data: data
  })
}

// 删除互动问题的回答或评论
export function delInteractionReply(id) {
  return request({
    url: '/study/interactionReply/' + id,
    method: 'delete'
  })
}
